package com.general.framework.example.factoryMethod;

import org.example.simpleFactoryPattern.ICourse;

public class Main {
    public static void main(String[] args) {
        ICourseFactory factory = new PythonCourseFactory();
        ICourse course = factory.create();
        course.record();

        factory = new JavaCourseFactory();
        course = factory.create();
        course.record();
    }
}
